body {
    min-height: 100%;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.5;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

.ub-admin-login {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    flex-direction: column;

    .login-box {
        display: flex;
        width: 600px;
        box-shadow: 0px 20px 80px 0px rgba(0, 0, 0, 0.3);
        border-radius: 0.5rem;

        .info {
            background: var(--color-primary);
            flex-grow: 1;
            border-radius: 0.5rem 0 0 0.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 2rem;
            color: #FFF;
            text-align: center;

            .title {
                font-size: 1.2rem;
            }

            .slogan {
                font-size: 0.7rem;
                margin-top: 1rem;
            }
        }

        .form {
            background: #FFF;
            padding: 20px;
            width: 50%;
            border-radius: 0 0.5rem 0.5rem 0;

            .line {
                padding: 15px 10px;

                input {
                    width: 100%;
                    font-size: 14px;
                    line-height: 40px;
                    height: 40px;
                }
            }
        }
    }

    .btn {
        background: var(--color-primary);
        border-color: var(--color-primary);

        &:hover, &:active, &:focus {
            background: var(--color-primary);
        }
    }
}

@media (max-width: 800px) {
    .ub-admin-login {
        display: block;
        background: #FFF;

        .login-box {
            display: block;
            border-radius: 0;
            width: 100%;
            box-shadow: none;

            .info {
                border-radius: 0;
            }

            .form {
                width: 100%;
                border-radius: 0;
            }
        }
    }
}

#adminMainPage {
    &.hidden {
        display: none;
    }
}

#adminTabPage {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    &.hidden {
        display: none;
    }

    iframe {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;

        &.hidden {
            left: -200%;
            top: -200%;
        }
    }
}
